/*
 *  Copyright (C) 2011 Sherlock Downloader
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package org.sherlock.commons.plugins.model;

/**
 * 
 * @author Sherlock Downloader
 */
public class Plugin {

    public enum Type {

        REVEALER, ENGINE, VIEW
    }
    protected String author;
    protected String description;
    protected String name;
    protected String version;
    protected Type type;
    protected String fileName;

    public Plugin(String author, String description, String name, String version, String fileName, Type type) {
        this.author = author;
        this.description = description;
        this.name = name;
        this.version = version;
        this.fileName = fileName;
        this.type = type;
    }

    public Plugin(Type type) {
        this("", type);
    }

    public Plugin(String name, Type type) {
        this.name = name;
        this.type = type;
    }

    public String getAuthor() {
        return author;
    }

    public String getDescription() {
        return description;
    }

    public String getName() {
        return name;
    }

    public Type getType() {
        return type;
    }

    public String getVersion() {
        return version;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setType(Type type) {
        this.type = type;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    @Override
    public String toString() {
        return name;
    }
}
